%-- 05.04.2024 14:05 --%
skalar =  10
format compact
skalar * pi
skalar = ans
help log
clc
1/0
0/0
skalar = sin(2)*exp(-2)
skalar = sin(t)*exp(-t)
t = 2 ;
skalar = sin(t)*exp(-t)
t = [1 2]
skalar = sin(t)*exp(-t)
skalar = sin(t).*exp(-t)
t = t'
skalar = sin(t).*exp(-t)
clc
who
whos
clc
v = 0:2:10
v = 0:3:10
v = 0:2:10
clc
v = 0:2:10
w = 0:-1:-5
w = w'
w = (0:-1:-5)'
w = 0:-1:-5'
clc
v , w
w=w'
v+w
v+w'
doc tranpose
v + transpose(w)
clc
m = [ v w ]
m = [ v ; w ]
m = [ v ; w' ]
mm = m(:,4:6)
[ 4 5 6 ]
mm = m(:,[ 4 5 6 ])
mm = m(:, end-2:end )
mm = m(:, [end-2 end-1 end] )
mm = m(:, [end end-2 end-1] )
mm = m(:, end-2:end )
size(m)
size(mm)
clc
mm
mm = [ mm(,2) mm(,1) mm(,3) ]
mm = [ mm(:,2) mm(:,1) mm(:,3) ]
mm(:,1:2) = [ mm(:,2) mm(:,1) ]
clc
0:(10-0)/(5-1):10
linspace(0,10,5)
linspace(0,10,9)
0:(10-0)/(9-1):10
doc log
doc logspace
logspace(-2,2,5)
logspace(-2,2,9)
clc
help eye
eye(3)
clc
student = struct('name','Wohlfarth')
student = struct('name','Wohlfarth','cname','Ulrich','age',53)
student(2).name = 'Smith'
student(2).cname = 'John'
student(2).age = 25
student.name
student(3).name = 'Doe';
clc
a=0 , b=1
help not
clc
help not
clc
a=0 , b=1
~(~a & ~b)
~(~a | ~b)
~(~a | not(b))
a = [0 0 1 1]', a = [0 1 0 1]'
a = [0 0 1 1]', b = [0 1 0 1]'
clc
[a b ]
[ a b ~(~a&~b) ~(~a|~b)]
exist(c)
exist('c')
exist('mm')
doc exist
pwd
exist(ans)
ls
clc
exist('eingabe_')
ls e*
exist('bode')
edit bode.m
clc
v = -3:3
v < 0
v(v < 0)
v < 0
find(v<0)
v(find(v<0))
v([1 2 3])
v(v<0)
v(v<0) * 2
clc
v
v>=0
v(v>=0)
find(v>=0)
clc
for n=1:10 , mod(n,2)==0 , end
clc
for i=1:10,  if mod(i,2)==0, disp('+'), end, end
for i=1:10,  if mod(i,2)==0, disp('+'), else disp('-') , end, end
for i=1:10, i, if mod(i,2)==0, disp('+'), else disp('-') , end, end
clc
help disp
clc
while 1 , end
help break
clc
while 1 , if abs(a-b)<0.2 end , end
clear a b
while 1 , if abs(a-b)<0.2 end , end
while 1 , a=rand; b=rand; if abs(a-b)<0.2 end , end
while 1 , a=rand, b=rand, if abs(a-b)<0.2 end , end
CLC
clc
while 1 , a=rand, b=rand, if abs(a-b)<0.2 , break , end , end
while 1 , a=rand; b=rand; abs(a-b), if abs(a-b)<0.2 , break , end , end
clc
while 1 , a=rand; b=rand; abs(a-b), if abs(a-b)<0.2 , break , end , end
while 1 , if abs(rand-rand)<0.2 , break , end , end
rand
while 1 , if abs(rand-rand)<0.2 , break , end , end
doc rand
while 1 , if abs(rand-rand)<0.2 , break , end , end
rand(seed)
rand(1,'seed')
clc
while 1 , a=rand; b=rand; abs(a-b), if ans<0.2 , break , end , end
cl
clc
clear
basic_calc(2,1)
[p,m,mu,d] = basic_calc(2,1)
[~,m,~,d] = basic_calc(2,1)
[~,m,~,d] = basic_calc(1:2,3:4)
[~,m,~,d] = basic_calc(1:2,(3:4)')
clcl
clc
[p,m,mu,d] = basic_calc(3:4,2:-1:1)
[(3:4)' (2:-1:1)']
[(3:4)' (2:-1:1)' p m mu d]
[(3:4)' (2:-1:1)' p' m' mu' d']
clc
v = 1:10
min(v)
max(v)
mean(v)
minmax(0:100)
[S,L] = minmax(0:100)
[S,L,A] = minmax(0:100)
[S,L,A] = minmax(1:100)
clc
[S,L,A] = minmax(1:100)
[S,L] = minmax(sin(0:pi/8:pi))
sin(0:pi/8:pi)
[0:pi/8:pi ; sin(0:pi/8:pi)]
plot(0:pi/8:pi, sin(0:pi/8:pi))
[S,L] = minmax(sin(0:pi/8:pi))
[S,L] = minmax([0 1 2 4 3 0])
min([0 1 2 4 3 0])
find(min([0 1 2 4 3 0]))
find( ([0 1 2 4 3 0])==min([0 1 2 4 3 0]) )
find( ([0 1 2 0 3 0])==min([0 1 2 0 3 0]) )
